<?php

namespace App\Models\Factory;

use App\Helpers\Http\HttpClient;
use App\Helpers\Utils;
use App\Models\AbsModelFactory;
use App\Models\Orm\SystemConfig;
use App\Models\Orm\UserSystemConfig;
use App\Strategies\SmsStrategy;
use Carbon\Carbon;
use Illuminate\Support\Facades\Cache;

/**
* 短信工厂
* Class SmsFactory
* @package App\Models\Factory
*/
class SystemConfigFactory extends AbsModelFactory
{

    public static  function getSystem($nid){

        $result = UserSystemConfig::where('nid',$nid)->where('status',1)->first();

        return $result ?  $result->value :'';

    }
}